#ifndef TLOCALPATHSQLMODEL_H
#define TLOCALPATHSQLMODEL_H

#include <QSqlQueryModel>

class TLocalPathSqlModel : public QSqlQueryModel
{
    Q_OBJECT
public:
    enum EFields{flMovieID=0,flName,flLocalPath,flFileHash,flSeasonNum, flEpisodeNum};
    TLocalPathSqlModel(QObject *parent = 0);
    void setDb(const QSqlDatabase & db = QSqlDatabase());
    void updateFileLocalPathInBd();
    QVariant data(const QModelIndex &item, int role) const;
    QString sqlText;
};

#endif // TLOCALPATHSQLMODEL_H
